﻿﻿//======================================================================
//
//        Copyright : Zhengzhou Strawberry Computer Technology Co.,LTD.
//        All rights reserved
//        
//        Application:NRapid MVC framework
//        Filename :IndexController.cs
//        Description :首页控制器
//
//        created by Lucas at  2015-6-30`
//     
//        WebSite:http://www.NRapid.com
//
//======================================================================
using System;
using System.Collections.Generic;
using System.Web;
using NRapid.Advanced;

namespace WebApp.App.Controllers
{
    [BaseUrl("~/")]
    public class IndexController: Controller
    {
        /// <summary>
        /// asdf
        /// </summary>
        /// <param name="a">is a</param>
        [CacheFile(300)]
        [GetHtmlZip("Index.html")]
        public void Index()
        {
            //这是变量b
            var con = Models.Common.OpenConnection();
            //用户
            var users = con.QueryAll("select * from users");
            con.Close();
            View("Index.cshtml");
        }
    }
}